﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace Wasion.HHU.Models
{
    [XmlRoot("NewDataSet")]
    public class AllSchemaItemPars
    {
        private List<XmlSchemaItemPar> schemaItemParList = new List<XmlSchemaItemPar>();
        [XmlElement(ElementName = "T_SchemaItemPar")]
        public List<XmlSchemaItemPar> SchemaItemPars
        {
            get { return schemaItemParList; }
            set { schemaItemParList = value; }
        }
    }
    public class XmlSchemaItemPar
    {
        XmlSchemaItemPar() { }

        [XmlAttribute("ID")]
        public string ID { get; set; }
        [XmlAttribute("PID")]
        public string PID { get; set; }
        [XmlAttribute("ObAttrMthID")]
        public string ObAttrMthID { get; set; }
        [XmlAttribute("SNO")]
        public int SNO { get; set; }
        [XmlAttribute("SchID")]
        public string SchID { get; set; }
        [XmlAttribute("DataType")]
        public string DataType { get; set; }
        [XmlAttribute("DefValue")]
        public string DefValue { get; set; }
        [XmlAttribute("Scaler")]
        public int Scaler { get; set; }
        [XmlAttribute("IfParent")]
        public int IfParent { get; set; }
        [XmlAttribute("SpeParForm")]
        public string SpeParForm { get; set; }
        [XmlAttribute("DataTypeDIY")]
        public string DataTypeDIY { get; set; }
        [XmlAttribute("EleNodetype")]
        public string EleNodetype { get; set; }
        [XmlAttribute("RealValue")]
        public string RealValue { get; set; }
    }
}
